package com.ms.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 志愿者活动报名实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("volunteer_enroll")
public class VolunteerEnroll {
    /**
     * 报名记录ID
     */
    @TableId(value = "enroll_id", type = IdType.AUTO)
    private Long enrollId;

    /**
     * 志愿者ID
     */
    @TableField("volunteer_id")
    private Long volunteerId;

    /**
     * 活动ID
     */
    @TableField("activity_id")
    private Long activityId;

    /**
     * 报名时间
     */
    @TableField(value = "enroll_time", fill = FieldFill.INSERT)
    private LocalDateTime enrollTime;

    /**
     * 报名状态（0-待审核，1-已通过，2-已拒绝，3-已取消）
     */
    @TableField("enroll_status")
    private Integer enrollStatus;

    /**
     * 审核时间
     */
    @TableField("audit_time")
    private LocalDateTime auditTime;

    /**
     * 审核人ID
     */
    @TableField("audit_user_id")
    private Long auditUserId;

    /**
     * 拒绝/取消原因
     */
    @TableField("reason")
    private String reason;
}